import request from '@/utils/request'
import qs from 'qs'
import type {wxaidata,reswxai} from './type'
export function getwxai(key: string):Promise<reswxai> {
  const data = {
    key
  }
  const requestData = qs.stringify(data)
  const url = `/wxai/getreply?${requestData}`
  return request({
    url: url,
    method: 'get'
  })
}
